package sctu.edu.java.year2016.team03.huangbaolian.exiercise.d20160602;

import javax.swing.*;
import java.awt.*;

/**
 * Created by hbl on 2016/6/5.
 */
public class ForPrint extends JDialog {
    public ForPrint(){
        super(new MyFrame(), "第一个窗口", true);
        Container container = getContentPane();
        container.add(new JLabel("这是一个对话框"));
        setSize(200,200);
     }




    public static void main(String[] args) {
       new MyFrame();
    }
}
class MyFrame extends Frame{


}